package day08;

public class Bus extends Automobile{
    int seats;
    Bus(String brand,String plateNumber,int seats){
        super(brand,plateNumber);
        this.seats = seats;
    }
    public int getRent(int days){
        if(this.seats <= 16){
            return 400*days;
        }
        else{
            return 600*days;
        }
    }
}
